<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改股票主板')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-board-edit" th:object="${stockMainBoard}">
            <input name="mainId" th:field="*{mainId}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">股票代码：</label>
                    <div class="col-sm-8">
                        <input name="stockCode" th:field="*{stockCode}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">股票名称：</label>
                    <div class="col-sm-8">
                        <input name="stockName" th:field="*{stockName}" class="form-control" type="text" required>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">股票板块：</label>
                    <div class="col-sm-8">
                        <input name="stockSector" th:field="*{stockSector}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">突破次数：</label>
                    <div class="col-sm-8">
                        <input name="breakFrequency" th:field="*{breakFrequency}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">突破时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="breakTime" th:value="${#dates.format(stockMainBoard.breakTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">是否购买：</label>
                    <div class="col-sm-8">
                        <input name="purchaseLevel" th:field="*{purchaseLevel}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">低位反弹次数：</label>
                    <div class="col-sm-8">
                        <input name="lowReboundFrequency" th:field="*{lowReboundFrequency}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">低位反弹时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="lowReboundTime" th:value="${#dates.format(stockMainBoard.lowReboundTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">暴击次数：</label>
                    <div class="col-sm-8">
                        <input name="criticalStrikeCount" th:field="*{criticalStrikeCount}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">暴击时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="criticalStrikeTime" th:value="${#dates.format(stockMainBoard.criticalStrikeTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">东方财富人气榜排名：</label>
                    <div class="col-sm-8">
                        <input name="dfcfPopularityEaderboardRanking" th:field="*{dfcfPopularityEaderboardRanking}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">东方财富人气榜热点：</label>
                    <div class="col-sm-8">
                        <textarea name="dfcfPopularityEaderboardHotspot" class="form-control">[[*{dfcfPopularityEaderboardHotspot}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">东方财富人气榜热点详细：</label>
                    <div class="col-sm-8">
                        <textarea name="dfcfPopularityEaderboardHotspotDetail" class="form-control">[[*{dfcfPopularityEaderboardHotspotDetail}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">东方财富人气榜时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="dfcfPopularityEaderboardTime" th:value="${#dates.format(stockMainBoard.dfcfPopularityEaderboardTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">同花顺人气榜排名：</label>
                    <div class="col-sm-8">
                        <input name="thsPopularityEaderboardRanking" th:field="*{thsPopularityEaderboardRanking}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">同花顺人气榜热点：</label>
                    <div class="col-sm-8">
                        <textarea name="thsPopularityEaderboardHotspot" class="form-control">[[*{thsPopularityEaderboardHotspot}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">同花顺人气榜热点详细：</label>
                    <div class="col-sm-8">
                        <textarea name="thsPopularityEaderboardHotspotDetail" class="form-control">[[*{thsPopularityEaderboardHotspotDetail}]]</textarea>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">同花顺人气榜概念：</label>
                    <div class="col-sm-8">
                        <input name="thsPopularityEaderboardConcept" th:field="*{thsPopularityEaderboardConcept}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">同花顺人气榜时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="thsPopularityEaderboardTime" th:value="${#dates.format(stockMainBoard.thsPopularityEaderboardTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">开盘啦龙虎榜慨念：</label>
                    <div class="col-sm-8">
                        <input name="kplLhbConcept" th:field="*{kplLhbConcept}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">开盘啦龙虎榜游资名称：</label>
                    <div class="col-sm-8">
                        <input name="kplLhbHotMoneyName" th:field="*{kplLhbHotMoneyName}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">开盘啦龙虎榜时间：</label>
                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="kplLhbTime" th:value="${#dates.format(stockMainBoard.kplLhbTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">备注：</label>
                    <div class="col-sm-8">
                        <textarea name="remark" class="form-control">[[*{remark}]]</textarea>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "system/board";
        $("#form-board-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-board-edit').serialize());
            }
        }

        $("input[name='breakTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='lowReboundTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='criticalStrikeTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='dfcfPopularityEaderboardTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='thsPopularityEaderboardTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='kplLhbTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>